package com.jeesit.cloud.spot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeesit.cloud.model.GdContractRecord;
import com.jeesit.cloud.spot.mapper.GdContractRecordMapper;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeesit.cloud.spot.service.IGdContractRecordService;
import org.springframework.stereotype.Service;
import com.jeesit.cloud.dto.GdContractRecordDto;

import javax.annotation.Resource;
import java.util.List;

/**
 *  服务实现类
 *
 * @author lss
 * @since 2024-02-06
 */
@Service
public class GdContractRecordServiceImpl extends ServiceImpl<GdContractRecordMapper, GdContractRecord> implements IGdContractRecordService {

    @Resource
    private GdContractRecordMapper mapper;

    @Override
    public Page<GdContractRecord> page(Page<GdContractRecord> p, GdContractRecordDto dto) {
        return mapper.selectCustomPage(p,dto);
    }

    @Override
    public List<GdContractRecord> list(int i, GdContractRecordDto dto) {
        return mapper.selectCustomList(i,dto);
    }

    @Override
    public void updateDeleted(Integer type) {
        mapper.updateDeleted(type);
    }
}
